<layout name="layout" />
<div class="pageheader notab">
	<span class="pagedesc" style="color:#ED7A53;display: block;padding: 5px;">
		请谨慎选择推广宝贝和推广标题，以免违规，详细规则请认真参考<a target="_blank" href="http://service.taobao.com/support/knowledge-1121130.htm">《淘宝直通车软件服务使用规范》</a>，十禾云智投不承担因推广宝贝、推广标题违禁所造成的损失
	</span>
</div>
<div id="contentwrapper" class="contentwrapper">
	<form method="post" action="/promote/wireless?step=3">
		<input type="hidden" name="campaign_id" id="campaign_id" value="{$campaign_id}">
		<input type="hidden" name="product_id" id="product_id" value="{$product_id}">
		<input type="hidden" name="budget" id="budget" value="{$budget}">
		<input type="hidden" name="limit" id="limit" value="{$limit}">
		<div class="row product_div" style="width:1198px;box-sizing:border-box;">
			<div style="margin-bottom: 20px;">
				<h4 style="padding-bottom:5px" id="item-title">{$item.title}</h4>
			</div>
			<div id="adgroup-creative">

			</div>
		</div>
		<div style="text-align:center; margin-top: 10px;">
			<input type="hidden" name="J_autoDrive" value="wireless">
			<a id="start_quick_campaign" class="button wireless_complete_step login-btn" href="javascript:void(0);">完成推广</a>
		</div>
	</form>
</div>
<include file="{APP_PATH}Template/Promote/creatives.html" />
<script type="text/javascript">
	var itemInfo = {$itemInfo};
	var campaign_id = {$campaign_id};
	var limit = {$limit};
	var budget = {$budget};

	$(document).ready(function(){
		itemInfo.title = itemInfo.title.substring(0, 20);
		promote.creative($('.contentwrapper'), {
			campaign_id: campaign_id,
			limit: limit,
			budget: budget,
			itemInfo: itemInfo
		}).init();
	});
</script>